package Server;

import java.net.InetAddress;
import java.net.UnknownHostException;
/**
 * This class gets the IP address from the server 
 * @author Gabi Revah

 */ 
public class IP_Identify {
	/**
	 * 
	 * @return the ip
	 */
	public  String IPIdentify(){
		String ipn = null;
		InetAddress ip;
		try {
			ip = InetAddress.getLocalHost();
			System.out.println("Current IP address : " + ip.getHostAddress());
			ipn=ip.getHostAddress();
		} catch (UnknownHostException e) {
 
			e.printStackTrace();
 
		}
		return ipn;
 
	}
 
}